﻿using ControlCenter.Model;
using MingYuanYun.Data.Abstractions;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using ControlCenter.Model.BizEntities;
using ControlCenter.Model.WebApiDto;

namespace ControlCenter.Data
{
    /// <summary>
    /// 心跳日志仓储接口
    /// </summary>
    public interface IHeartLogRepository : IRepositoryBase
    {
        /// <summary>
        /// 查询最近的心跳日志
        /// </summary>
        /// <param name="time"></param>
        /// <returns></returns>
        Task<IEnumerable<QueryNearLogDto>> QueryNearLogs(DateTime time);

        /// <summary>
        /// 批量添加心跳日志
        /// </summary>
        /// <param name="heartLogs"></param>
        /// <returns></returns>
        Task<bool> BatchAddLogs(List<HeartLog> heartLogs);
    }
}
